<template>
	<view>
		<view class="content" v-html="content">
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type:'',
				content:''
			};
		},
		onLoad(e) {
			uni.setNavigationBarTitle({
				title:e.title
			})
			this.type = e.type
			this.init()
		},
		methods:{
			init(){
				this.$api.message({
					notice_type:this.type
				}).then(res=>{
					this.content = res.data.content
					// console.log(this.content.length)
				})
			}
		}
	}
</script>

<style lang="scss">
.content{
	padding: 34rpx;
	line-height: 30rpx;
	font-size: 28rpx;
	color: #333;
}
</style>
